/*
 * comlan
 */

package com.promfy.draw;

import com.promfy.R;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.LinearLayout;


public class DrawViewActivity extends Activity{
	  @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.main);
	        
	        init();
	    }

		private void init() {
			LinearLayout layout=(LinearLayout) findViewById(R.id.linear);
			layout.setBackgroundColor(Color.WHITE);
			layout.setPadding(100, 100, 100, 100);
			final CusDrawView view=new CusDrawView(this);
			
//			view.setMinimumHeight(500);
//			view.setMinimumWidth(300);
			//通知view组件重绘  
			view.invalidate();
			layout.addView(view);
			
//			view.setOnTouchListener(this);
		}

		
}
